package com.gxljc.bear.crawler.image;

/**
 * 图片信息
 * 
 * @author Darren Mo
 * @date 2022年11月27日 下午7:25:59
 */
public class ImageEntity {

	private byte[] binaryImage;// 图片二进制
	private int width;
	private int height;
	private String originalUrl;// 原始图片url
	private String imageId;// 图片id，以md5(url)生成

	public ImageEntity(String imageId, byte[] binaryImage, String originalUrl, int width, int height) {
		this.binaryImage = binaryImage;
		this.originalUrl = originalUrl;
		this.width = width;
		this.height = height;
		this.imageId = imageId;
	}

	public ImageEntity(){
		
	}
	
	public byte[] getBinaryImage() {
		return binaryImage;
	}

	public void setBinaryImage(byte[] binaryImage) {
		this.binaryImage = binaryImage;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public String getOriginalUrl() {
		return originalUrl;
	}

	public void setOriginalUrl(String originalUrl) {
		this.originalUrl = originalUrl;
	}

	public String getImageId() {
		return imageId;
	}

	public void setImageId(String imageId) {
		this.imageId = imageId;
	}

}
